package com.bilgeadam.mvc.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author Bora SAYINER
 * @since Jan 3, 2015 7:16:50 PM
 * @version 1.0
 */
public class DispatcherServlet extends GenericHttpServlet {

	@Override
	protected void handleRequest(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		if (req.getRequestURI().endsWith("showProducts")) {
			req.getRequestDispatcher("showProductServlet").forward(req, resp);
		}
	}
}
